export default {
    
        //对state进行设置
        // setCurIdx (state, index) {
    
        //   state.curIdx = index
        // }
        setCurIdx(state, payload) {
          const { index, text } = payload;
          state.curIdx = index;
          console.log(text);
        },
        setData(state, data) {
          state.data = data
        }
}